home *** CD-ROM | disk | FTP | other *** search
- class MaximaVolley$Player extends Thread {
- public final int WIDTH;
- public final int HEIGHT;
- // $FF: renamed from: x int
- int field_0;
- // $FF: renamed from: y int
- int field_1;
- // $FF: synthetic field
- private final MaximaVolley this$0;
-
- public MaximaVolley$Player(MaximaVolley var1) {
- this.this$0 = var1;
- this.WIDTH = MaximaVolley.access$100(this.this$0).getWidth() / 8;
- this.HEIGHT = MaximaVolley.access$100(this.this$0).getHeight() / 8;
- this.setUp(1);
- }
-
- void setUp(int var1) {
- if (var1 == 1) {
- this.field_0 = MaximaVolley.access$100(this.this$0).getWidth() / 4 - this.WIDTH / 2 - 4;
- this.field_1 = MaximaVolley.access$100(this.this$0).getHeight() - this.HEIGHT - 5;
- } else {
- this.field_0 = MaximaVolley.access$100(this.this$0).getWidth() - MaximaVolley.access$100(this.this$0).getWidth() / 4 - this.WIDTH / 2 + 4;
- this.field_1 = MaximaVolley.access$100(this.this$0).getHeight() - this.HEIGHT - 5;
- }
-
- }
-
- public void run() {
- while(!MaximaVolley.access$400(this.this$0)) {
- try {
- Thread.sleep(10L);
- } catch (Exception var2) {
- return;
- }
- }
-
- }
-
- void move(int var1) {
- int var2 = this.field_0;
- int var3 = this.field_0 + var1;
- if (var3 + this.WIDTH <= MaximaVolley.access$100(this.this$0).getWidth() && var3 >= 0) {
- this.field_0 = var3;
- }
-
- MaximaVolley.access$100(this.this$0).repaint(Math.min(var2, this.field_0), this.field_1, Math.abs(this.field_0 - var2) + this.WIDTH + 1, this.HEIGHT + 4);
- }
- }
-